package main

import (
	"fmt"
	time2 "time"
)

func main() {
	fmt.Println(time2.Now().Format("2006-01-02 15:04:05"))
	fmt.Println(time2.Now().Unix())
	fmt.Println(time2.Unix(time2.Now().Unix(), 0).Format("2006-01-02 15:04:05"))
	parse, _ := time2.Parse("2006-01-02 15:04:05", "2019-04-19 15:04:05")
	fmt.Println(parse.Unix())
	fmt.Println(parse.Format("2006-01-02 15:04:05"))
}
